﻿@model Nop.Web.Models.Blogs.BlogPostListModel
@using Nop.Web;
@using Nop.Web.Extensions;

<div class="block block-category-navigation">
    <div class="title">
        Recent Blog
    </div>
    <div class="clear">
    </div>
    <div class="listbox">
       <ul>
       @foreach (var item in Model.BlogPosts)
       {
            <li>
                <a href="@Url.RouteUrl("BlogPost", new { blogPostId = item.Id, SeName = item.SeName })">
                    @if(item.Title.Length>26)
                    {
                        @item.Title.Substring(0,26)
                     }
                     else
                     {
                         @item.Title;
                     }</a>
            </li>
       }
       </ul>
    </div>
</div>